<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="Description" content="来花开，许下你的十一月小心愿，有机会获奖哦！" />
    <title>#发布十一月小心愿 参与抽奖#</title>
    <script data-res="HKtrust" src="/static/js/huati/flexible.js"></script>
    <script data-res="HKtrust" src="/static/js/huati/jquery.min.js"></script>
    <link rel="stylesheet" href="/static/css/huati/xinyuan/main.css">
    <script data-res="HKtrust" src="/static/js/huati/util.js"></script>
    <script data-res="HKtrust" src="/static/js/huati/init.js"></script>
</head>
<body>
<script data-res="HKtrust" src="/static/js/common/Monitor.js"></script>
    <div data-res="HKtrust" class="main">
        <div class="main-tit">
            <div class="tit-people" >
                <p style="text-align: left;margin-top: 0.15rem">当前有<span class="joinNum"></span>人参与</p>
                <p style="text-align: right">我在第<span class="rank"></span><b class="text" style="font-weight: normal"></b></p>
            </div>
            <div class="tit-method">
                <p>参与方式：<br>
                    发布#十一月小心愿#的话题就可以参与了；<br> 截止时间 <br>2018年11月1号 - 2018年11月30号 </p>
            </div>
        </div>
        <div class="main-con">
            <div class="con-ruler">
                <h1>话题奖励</h1>
                <div class="ruler1">
                    <p>A.十一月心愿奖（10名）：收到“幸运草”最多的前10条话题，按单一话题消费幸运草的10%来奖励。(比如：某话题收到1000个幸运草，奖励计算：1000个*299花瓣*10%=29900花瓣。)</p>
                    <p style="margin-top: 0.1rem">B.幸运奖（3名）：奖品“花开定制公仔”；</p>
                </div>
                <div class="ruler2">
                    获奖小技巧：快去邀请朋友们在你发布的话题下面送“幸运草”吧(在其他地方送的幸运草不算哦)！
                </div>
            </div>
        </div>
        <p class="main-bottom">-该活动与苹果公司无关-</p>
    </div>
<script data-res="HKtrust">

    $(function () {
        var customerId = getParameter("customerId");
        console.log(customerId);
        if(customerId!=null){
            $.ajax({
                url: genUrl("/h5/activity/topic/gift/myCurrentRanking"),
                type: 'GET',
                contentType: "application/json",
                data: {"customerId":customerId },
                dataType: 'json',
                async: false,
                success: function (obj) {
                    if(obj.code=="0"){
                        var rank=parseInt(obj.data.currentRanking);
                        if(rank==101){
                            $(".rank").html("100");
                            $(".text").html("名之后");
                        }else{
                            $(".rank").html(rank);
                            $(".text").html("名");
                        }
                        $(".joinNum").html(obj.data.joinNum);

                    }else{
                        console.log("请求异常", obj.message);
                    }
                }
            });
        }
    })
</script>
<script data-res="HKtrust" src="/static/js/clearAdv.js"></script>
</body>
</html>